# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-cattrs
pkgver=1.8.0
pkgrel=1
pkgdesc="Complex custom class converters for attrs"
url="https://github.com/Tinche/cattrs"
arch="noarch"
license="MIT"
depends="python3 py3-attrs"
makedepends="py3-setuptools"
options="!check" # loads of missing deps
source="https://files.pythonhosted.org/packages/source/c/cattrs/cattrs-$pkgver.tar.gz"
builddir="$srcdir/cattrs-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
5b46d7f3e103654fcc1088ed5cafd0fa84f1385c2f68f8c7ebfba4aa80cd9f34801a1f02a3bdca016aef01a8384a9dfefe053d0e4aee04f188a39edda9f6831e  cattrs-1.8.0.tar.gz
"
